package com.hanxy17.ssh.action;

import com.hanxy17.ssh.service.IBService;

public class LoginAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6516748656000043591L;
	
//	@Autowired  
    private IBService bService;
	
	private String username;    
    


	private String password; 
    
    
	
	 public IBService getbService() {
		return bService;
	}



	public void setbService(IBService bService) {
		this.bService = bService;
	}



	public String execute() throws Exception   
	    {    
		 if(bService == null){
		 }
	        if(bService.login(username,password))    
	        {  
	            return "success";    
	        }
	        return "error";
	    }




	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}

}
